enum Sex {
  boy,
  girl,
  other,
}


// 数字转Sex枚举类
class IntToSex {
  static getSex(data) {
    if (data == 0) {
      return Sex.other;
    } else if (data == 1) {
      return Sex.boy;
    }
    return Sex.girl;
  }
}
